{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "4d1e846e-c9e6-423a-800b-5fccfc1a41d8",
   "metadata": {},
   "source": [
    "## 找到最新的文件以及文件大小，从而判断磁盘增大的原因"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "42f8de70-1f00-4d0b-9307-d06f7142b1e7",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "大小: 13058.77 MB, 修改时间：2025-05-26 11:40:31, 文件: C:/hiberfil.sys\n",
      "大小: 4864.00 MB, 修改时间：2025-05-26 11:40:34, 文件: C:/pagefile.sys\n",
      "大小: 392.24 MB, 修改时间：2025-05-19 16:38:41, 文件: C:/Program Files\\Google\\Chrome\\Application\\136.0.7103.114\\Installer\\chrome.7z\n",
      "大小: 265.32 MB, 修改时间：2025-05-23 14:59:07, 文件: C:/Program Files (x86)\\Microsoft\\Edge\\Application\\136.0.3240.92\\msedge.dll\n",
      "大小: 265.32 MB, 修改时间：2025-05-23 14:59:07, 文件: C:/Program Files (x86)\\Microsoft\\EdgeCore\\136.0.3240.92\\msedge.dll\n",
      "大小: 265.32 MB, 修改时间：2025-05-23 14:59:07, 文件: C:/Program Files (x86)\\Microsoft\\EdgeWebView\\Application\\136.0.3240.92\\msedge.dll\n",
      "大小: 240.99 MB, 修改时间：2025-05-26 12:07:59, 文件: C:/Users\\manulism\\AppData\\Local\\ConnectedDevicesPlatform\\8b8db738de9170f6\\ActivitiesCache.db\n",
      "大小: 237.98 MB, 修改时间：2025-05-14 04:31:38, 文件: C:/Program Files\\Google\\Chrome\\Application\\136.0.7103.114\\chrome.dll\n",
      "大小: 204.88 MB, 修改时间：2025-05-16 16:47:18, 文件: C:/Windows\\System32\\MRT.exe\n",
      "大小: 198.99 MB, 修改时间：2025-05-13 13:53:46, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\index\\stubs\\Stubs.storage.values\n",
      "大小: 174.40 MB, 修改时间：2025-05-14 14:07:06, 文件: C:/Users\\manulism\\AppData\\Roaming\\Tencent\\WeChat\\XPlugin\\Plugins\\RadiumWMPF\\13639\\extracted\\runtime\\flue.dll\n",
      "大小: 116.00 MB, 修改时间：2025-04-30 11:20:41, 文件: C:/Program Files (x86)\\Google\\GoogleUpdater\\crx_cache\\c01a1487585d96044b30c85c1b3b46b1f97c66885b92ba4b4e5f5a542dbcef5d\n",
      "大小: 115.84 MB, 修改时间：2025-05-19 16:38:37, 文件: C:/Program Files (x86)\\Google\\GoogleUpdater\\crx_cache\\3c44958b04fc5472723195695245b0c97501b3f727c7d76a2beea42321b274f4\n",
      "大小: 109.80 MB, 修改时间：2025-05-01 08:54:52, 文件: C:/Windows\\servicing\\LCU\\Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.5854.1.15\\amd64_microsoft-windows-edgechromium_31bf3856ad364e35_10.0.19041.3636_none_7437336f112dbb3d\\edge.wim\n",
      "大小: 83.36 MB, 修改时间：2025-05-13 14:35:52, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\index\\trigram.index\\Trigram.Index.storage.values\n",
      "大小: 78.93 MB, 修改时间：2025-05-13 18:32:01, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\caches\\attrib.dat.storageData\n",
      "大小: 78.50 MB, 修改时间：2025-05-25 11:34:46, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\vfs\\ProgramFilesCommonX86\\Microsoft Shared\\OFFICE16\\MSORES.DLL\n",
      "大小: 75.57 MB, 修改时间：2025-05-26 11:40:07, 文件: C:/Users\\manulism\\AppData\\Local\\Everything\\Everything.db\n",
      "大小: 69.95 MB, 修改时间：2025-05-09 15:25:43, 文件: C:/Users\\manulism\\.m2\\repository\\com\\manu\\pdm\\main_web\\0.0.1-SNAPSHOT\\main_web-0.0.1-SNAPSHOT.jar\n",
      "大小: 65.00 MB, 修改时间：2025-05-26 13:25:44, 文件: C:/Users\\manulism\\AppData\\Local\\Microsoft\\Windows\\WebCache\\WebCacheV01.dat\n",
      "大小: 63.44 MB, 修改时间：2025-05-19 18:51:11, 文件: C:/Windows\\servicing\\Sessions\\Sessions.back.xml\n",
      "大小: 63.44 MB, 修改时间：2025-05-19 18:51:11, 文件: C:/Windows\\servicing\\Sessions\\Sessions.xml\n",
      "大小: 59.00 MB, 修改时间：2025-05-26 11:55:45, 文件: C:/Windows\\System32\\catroot2\\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\\catdb\n",
      "大小: 57.07 MB, 修改时间：2025-04-28 15:56:13, 文件: C:/Users\\manulism\\.m2\\repository\\com\\edge\\main_web\\1.0-SNAPSHOT\\main_web-1.0-SNAPSHOT.jar\n",
      "大小: 56.74 MB, 修改时间：2025-05-13 18:32:01, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\caches\\content.dat.storageData\n",
      "大小: 55.38 MB, 修改时间：2025-05-13 14:35:52, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\index\\idindex\\IdIndex.storage.values\n",
      "大小: 44.75 MB, 修改时间：2025-05-12 10:57:35, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\index\\bytecodeanalysis\\bytecodeAnalysis.storage\n",
      "大小: 41.59 MB, 修改时间：2025-05-22 14:18:48, 文件: C:/Users\\manulism\\.vscode\\extensions\\docker.docker-0.7.0-win32-x64\\bin\\docker-language-server-windows-amd64.exe\n",
      "大小: 39.91 MB, 修改时间：2025-05-25 11:34:39, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\Office16\\excelcnv.exe\n",
      "大小: 38.68 MB, 修改时间：2025-05-25 12:35:06, 文件: C:/ProgramData\\Microsoft\\ClickToRun\\ProductReleases\\2E6A7DA4-DA78-498A-9179-7D0982F48142\\operations.db\n",
      "大小: 36.47 MB, 修改时间：2025-04-30 18:26:11, 文件: C:/Users\\manulism\\AppData\\Roaming\\Code\\Crashpad\\reports\\8156fd38-03b9-42f1-a050-f0d2c3a1740a.dmp\n",
      "大小: 36.00 MB, 修改时间：2025-05-26 13:35:48, 文件: C:/Windows\\SoftwareDistribution\\DataStore\\DataStore.edb\n",
      "大小: 35.28 MB, 修改时间：2025-05-09 13:33:14, 文件: C:/Windows\\WinSxS\\amd64_microsoft-windows-dynamic-image_31bf3856ad364e35_10.0.19041.5854_none_b4c5046ceab71469\\n\\WindowsDefenderApplicationGuard.wim\n",
      "大小: 35.26 MB, 修改时间：2025-05-16 16:00:45, 文件: C:/Windows\\Containers\\serviced\\WindowsDefenderApplicationGuard.wim\n",
      "大小: 35.26 MB, 修改时间：2025-05-16 16:00:45, 文件: C:/Windows\\WinSxS\\amd64_microsoft-windows-dynamic-image_31bf3856ad364e35_10.0.19041.5854_none_b4c5046ceab71469\\WindowsDefenderApplicationGuard.wim\n",
      "大小: 34.84 MB, 修改时间：2025-05-25 11:35:55, 文件: C:/Windows\\System32\\spp\\store\\2.0\\tokens.dat\n",
      "大小: 34.25 MB, 修改时间：2025-05-20 10:50:07, 文件: C:/Windows\\assembly\\NativeImages_v4.0.30319_64\\System.Manaa57fc8cc#\\6917cfe658ac1e0d22e7fc32de442ecd\\System.Management.Automation.ni.dll\n",
      "大小: 34.03 MB, 修改时间：2025-05-13 18:32:01, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\caches\\records.dat\n",
      "大小: 32.53 MB, 修改时间：2025-05-08 18:57:37, 文件: C:/Users\\manulism\\AppData\\Roaming\\Code\\Crashpad\\reports\\61a61ae3-7eae-4d61-8945-3c47c1e47ded.dmp\n",
      "大小: 32.00 MB, 修改时间：2025-05-26 11:40:39, 文件: C:/Windows\\System32\\winevt\\Logs\\Microsoft-Windows-Ntfs%4Operational.evtx\n",
      "大小: 32.00 MB, 修改时间：2025-05-26 12:01:36, 文件: C:/ProgramData\\Huorong\\Sysdiag\\scenter\\scenter.db\n",
      "大小: 31.30 MB, 修改时间：2025-05-26 11:47:18, 文件: C:/ProgramData\\Microsoft\\ClickToRun\\ProductReleases\\49E8D5D2-E761-4F35-B54D-78B65AF3F68A\\operations.db\n",
      "大小: 30.48 MB, 修改时间：2025-05-26 13:01:40, 文件: C:/Windows\\System32\\wbem\\Repository\\OBJECTS.DATA\n",
      "大小: 29.68 MB, 修改时间：2025-05-23 05:46:00, 文件: C:/Program Files (x86)\\Microsoft\\Edge\\Application\\136.0.3240.92\\resources.pak\n",
      "大小: 29.68 MB, 修改时间：2025-05-23 05:46:00, 文件: C:/Program Files (x86)\\Microsoft\\Edge\\Application\\136.0.3240.92\\ResiliencyLinks\\resources.pak.DATA\n",
      "大小: 29.68 MB, 修改时间：2025-05-23 05:46:00, 文件: C:/Program Files (x86)\\Microsoft\\EdgeCore\\136.0.3240.92\\resources.pak\n",
      "大小: 29.68 MB, 修改时间：2025-05-23 05:46:00, 文件: C:/Program Files (x86)\\Microsoft\\EdgeWebView\\Application\\136.0.3240.92\\resources.pak\n",
      "大小: 29.68 MB, 修改时间：2025-05-23 05:46:00, 文件: C:/Program Files (x86)\\Microsoft\\EdgeWebView\\Application\\136.0.3240.92\\ResiliencyLinks\\resources.pak.DATA\n",
      "大小: 29.18 MB, 修改时间：2025-05-26 13:31:32, 文件: C:/Users\\manulism\\AppData\\Roaming\\RabbitMQ\\log\\rabbit@DESKTOP-MI4UQHL.log\n",
      "大小: 28.72 MB, 修改时间：2025-05-14 10:41:37, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\Office16\\PROOF\\MSGR8EN.LEX\n",
      "大小: 27.78 MB, 修改时间：2025-05-25 11:34:44, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\vfs\\ProgramFilesCommonX86\\Microsoft Shared\\OFFICE16\\MSO.DLL\n",
      "大小: 27.75 MB, 修改时间：2025-05-15 22:39:44, 文件: C:/Program Files\\Common Files\\microsoft shared\\ClickToRun\\OfficeC2RClient.exe\n",
      "大小: 27.50 MB, 修改时间：2025-05-13 13:53:45, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\index\\.persistent\\trigram.index\\values.values\n",
      "大小: 26.58 MB, 修改时间：2025-05-25 11:34:37, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\Office16\\WINPROJ.EXE\n",
      "大小: 25.05 MB, 修改时间：2025-05-16 16:00:53, 文件: C:/Windows\\System32\\edgehtml.dll\n",
      "大小: 25.05 MB, 修改时间：2025-05-16 16:00:53, 文件: C:/Windows\\WinSxS\\amd64_microsoft-windows-ie-htmlrendering_31bf3856ad364e35_11.0.19041.5848_none_cb7df40101020604\\edgehtml.dll\n",
      "大小: 24.61 MB, 修改时间：2025-05-14 04:31:47, 文件: C:/Program Files\\Google\\Chrome\\Application\\136.0.7103.114\\dxcompiler.dll\n",
      "大小: 24.59 MB, 修改时间：2025-05-15 10:27:30, 文件: C:/Users\\manulism\\AppData\\Roaming\\Code\\CachedExtensionVSIXs\\ms-python.vscode-pylance-2025.5.1\n",
      "大小: 24.41 MB, 修改时间：2025-05-09 10:18:09, 文件: C:/Windows\\assembly\\NativeImages_v4.0.30319_64\\System.ServiceModel\\0fa8491699db1fa900857be44ffc92ac\\System.ServiceModel.ni.dll\n",
      "大小: 24.16 MB, 修改时间：2025-05-14 10:42:13, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\vfs\\ProgramFilesCommonX64\\Microsoft Shared\\OFFICE16\\AI\\ai.dll\n",
      "大小: 23.37 MB, 修改时间：2025-05-09 10:17:44, 文件: C:/Windows\\assembly\\NativeImages_v4.0.30319_64\\Presentatio5ae0f00f#\\e5c732c64ceacc3331116a673a1dc7a1\\PresentationFramework.ni.dll\n",
      "大小: 23.15 MB, 修改时间：2025-05-16 16:01:22, 文件: C:/Windows\\System32\\Hydrogen.dll\n",
      "大小: 23.15 MB, 修改时间：2025-05-16 16:01:22, 文件: C:/Windows\\WinSxS\\amd64_microsoft-analog-h2-hydrogenrt_31bf3856ad364e35_10.0.19041.5848_none_6a2beee173767a67\\Hydrogen.dll\n",
      "大小: 22.36 MB, 修改时间：2025-05-16 16:00:55, 文件: C:/Windows\\System32\\mshtml.dll\n",
      "大小: 22.36 MB, 修改时间：2025-05-16 16:00:55, 文件: C:/Windows\\WinSxS\\amd64_microsoft-windows-i..tmlrendering-legacy_31bf3856ad364e35_11.0.19041.5794_none_ca7d21ef9121ccd8\\mshtml.dll\n",
      "大小: 22.09 MB, 修改时间：2025-05-25 11:34:42, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\vfs\\ProgramFilesCommonX64\\Microsoft Shared\\OFFICE16\\Mso98win32client.dll\n",
      "大小: 22.00 MB, 修改时间：2025-05-26 13:33:12, 文件: C:/Windows\\System32\\LogFiles\\WMI\\NetCore.etl\n",
      "大小: 21.12 MB, 修改时间：2025-05-26 12:03:27, 文件: C:/Users\\manulism\\AppData\\LocalLow\\Intel\\ShaderCache\\b5ce991dca12883099364fd7b9bde78475c8e3c20339337a70527626d2bf4c27\n",
      "大小: 21.08 MB, 修改时间：2025-05-14 10:42:20, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\vfs\\ProgramFilesCommonX86\\Microsoft Shared\\OFFICE16\\AI\\ai.dll\n",
      "大小: 21.04 MB, 修改时间：2025-05-14 14:07:03, 文件: C:/Users\\manulism\\AppData\\Roaming\\Tencent\\WeChat\\XPlugin\\Plugins\\RadiumWMPF\\13639\\extracted\\runtime\\dxcompiler.dll\n",
      "大小: 20.94 MB, 修改时间：2025-05-13 14:33:16, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\caches\\names.dat.keystream\n",
      "大小: 20.94 MB, 修改时间：2025-04-28 16:24:17, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\index\\filenameindex\\FilenameIndex.storage.keystream\n",
      "大小: 20.72 MB, 修改时间：2025-05-22 14:18:45, 文件: C:/Users\\manulism\\AppData\\Roaming\\Code\\CachedExtensionVSIXs\\docker.docker-0.7.0-win32-x64\n",
      "大小: 20.14 MB, 修改时间：2025-05-09 10:17:02, 文件: C:/Windows\\assembly\\NativeImages_v4.0.30319_32\\Presentatio5ae0f00f#\\251bed28467926c8a6b43f1f52537d23\\PresentationFramework.ni.dll\n",
      "大小: 20.00 MB, 修改时间：2025-05-26 11:40:47, 文件: C:/Windows\\System32\\winevt\\Logs\\Application.evtx\n",
      "大小: 20.00 MB, 修改时间：2025-05-26 11:40:39, 文件: C:/Windows\\System32\\winevt\\Logs\\Security.evtx\n",
      "大小: 20.00 MB, 修改时间：2025-05-26 12:41:38, 文件: C:/Windows\\System32\\winevt\\Logs\\System.evtx\n",
      "大小: 19.58 MB, 修改时间：2025-05-23 14:58:24, 文件: C:/Program Files (x86)\\Microsoft\\Edge\\Application\\136.0.3240.92\\dxcompiler.dll\n",
      "大小: 19.58 MB, 修改时间：2025-05-23 14:58:24, 文件: C:/Program Files (x86)\\Microsoft\\EdgeCore\\136.0.3240.92\\dxcompiler.dll\n",
      "大小: 19.58 MB, 修改时间：2025-05-23 14:58:24, 文件: C:/Program Files (x86)\\Microsoft\\EdgeWebView\\Application\\136.0.3240.92\\dxcompiler.dll\n",
      "大小: 19.13 MB, 修改时间：2025-05-26 11:41:03, 文件: C:/Windows\\System32\\winevt\\Logs\\Microsoft-Windows-Store%4Operational.evtx\n",
      "大小: 19.07 MB, 修改时间：2025-05-26 11:40:39, 文件: C:/Windows\\System32\\winevt\\Logs\\Microsoft-Windows-Storage-Storport%4Operational.evtx\n",
      "大小: 18.95 MB, 修改时间：2025-05-16 16:01:06, 文件: C:/Windows\\SysWOW64\\edgehtml.dll\n",
      "大小: 18.95 MB, 修改时间：2025-05-16 16:01:06, 文件: C:/Windows\\WinSxS\\wow64_microsoft-windows-ie-htmlrendering_31bf3856ad364e35_11.0.19041.5794_none_d5e2cad13555c43d\\edgehtml.dll\n",
      "大小: 18.94 MB, 修改时间：2025-05-26 11:12:38, 文件: C:/Windows\\Logs\\CBS\\CbsPersist_20250526034102.log\n",
      "大小: 18.59 MB, 修改时间：2025-05-25 11:34:48, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\vfs\\ProgramFilesCommonX86\\Microsoft Shared\\OFFICE16\\Mso98win32client.dll\n",
      "大小: 18.57 MB, 修改时间：2025-05-23 15:01:38, 文件: C:/Program Files (x86)\\Microsoft\\Edge\\Application\\136.0.3240.92\\WidevineCdm\\_platform_specific\\win_x64\\widevinecdm.dll\n",
      "大小: 18.57 MB, 修改时间：2025-05-23 15:01:38, 文件: C:/Program Files (x86)\\Microsoft\\EdgeCore\\136.0.3240.92\\WidevineCdm\\_platform_specific\\win_x64\\widevinecdm.dll\n",
      "大小: 18.57 MB, 修改时间：2025-05-23 15:01:38, 文件: C:/Program Files (x86)\\Microsoft\\EdgeWebView\\Application\\136.0.3240.92\\WidevineCdm\\_platform_specific\\win_x64\\widevinecdm.dll\n",
      "大小: 18.54 MB, 修改时间：2025-05-13 22:45:24, 文件: C:/Program Files\\Google\\Chrome\\Application\\136.0.7103.114\\WidevineCdm\\_platform_specific\\win_x64\\widevinecdm.dll\n",
      "大小: 18.16 MB, 修改时间：2025-05-25 11:34:44, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\vfs\\ProgramFilesCommonX86\\Microsoft Shared\\OFFICE16\\MSO99LRES.DLL\n",
      "大小: 17.92 MB, 修改时间：2025-05-25 11:34:41, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\vfs\\ProgramFilesCommonX64\\Microsoft Shared\\OFFICE16\\Mso40UIwin32client.dll\n",
      "大小: 17.90 MB, 修改时间：2025-05-16 16:01:21, 文件: C:/Windows\\System32\\HologramWorld.dll\n",
      "大小: 17.90 MB, 修改时间：2025-05-16 16:01:21, 文件: C:/Windows\\WinSxS\\amd64_microsoft-analog-h2-hydrogenrt_31bf3856ad364e35_10.0.19041.5848_none_6a2beee173767a67\\HologramWorld.dll\n",
      "大小: 17.83 MB, 修改时间：2025-05-25 11:32:54, 文件: C:/ProgramData\\Microsoft\\ClickToRun\\ProductReleases\\2E6A7DA4-DA78-498A-9179-7D0982F48142\\activeoperations.db\n",
      "大小: 17.66 MB, 修改时间：2025-05-13 18:32:00, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\log\\build-log\\build.log\n",
      "大小: 17.25 MB, 修改时间：2025-05-16 16:01:07, 文件: C:/Windows\\SysWOW64\\mshtml.dll\n",
      "大小: 17.25 MB, 修改时间：2025-05-16 16:01:07, 文件: C:/Windows\\WinSxS\\wow64_microsoft-windows-i..tmlrendering-legacy_31bf3856ad364e35_11.0.19041.5848_none_d4c19fc3c58f9295\\mshtml.dll\n",
      "大小: 17.08 MB, 修改时间：2025-05-20 11:09:57, 文件: C:/Users\\manulism\\AppData\\Local\\Microsoft\\Office\\SolutionPackages\\4ddf7f2d7487a2df2f96c868b3cd313\\PackageResources\\OfflineFiles\\bundle_4e0e272f22ee5a84e42ab715ea23f5e4.js\n",
      "大小: 16.92 MB, 修改时间：2025-05-09 10:18:17, 文件: C:/Windows\\assembly\\NativeImages_v4.0.30319_64\\System.Windows.Forms\\1d6c9516bcf56d5ca8ac296c680f5aea\\System.Windows.Forms.ni.dll\n",
      "大小: 16.75 MB, 修改时间：2025-05-26 11:40:08, 文件: C:/Users\\manulism\\NTUSER.DAT\n",
      "大小: 16.72 MB, 修改时间：2025-05-16 15:59:01, 文件: C:/Windows\\System32\\Windows.UI.Xaml.dll\n",
      "大小: 16.72 MB, 修改时间：2025-05-16 15:59:01, 文件: C:/Windows\\WinSxS\\amd64_microsoft-windows-directui_31bf3856ad364e35_10.0.19041.5848_none_2b78c11ea3f9f272\\Windows.UI.Xaml.dll\n",
      "大小: 16.60 MB, 修改时间：2025-05-23 14:57:37, 文件: C:/Program Files (x86)\\Microsoft\\Edge\\Application\\136.0.3240.92\\mspdf.dll\n",
      "大小: 16.60 MB, 修改时间：2025-05-23 14:57:37, 文件: C:/Program Files (x86)\\Microsoft\\EdgeCore\\136.0.3240.92\\mspdf.dll\n",
      "大小: 16.60 MB, 修改时间：2025-05-23 14:57:37, 文件: C:/Program Files (x86)\\Microsoft\\EdgeWebView\\Application\\136.0.3240.92\\mspdf.dll\n",
      "大小: 16.58 MB, 修改时间：2025-05-25 11:34:39, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\Office16\\onmain.DLL\n",
      "大小: 16.55 MB, 修改时间：2025-04-29 16:54:12, 文件: C:/Windows\\servicing\\LCU\\Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.5854.1.15\\amd64_microsoft-windows-ptp-bootos_31bf3856ad364e35_10.0.19041.5848_none_4a8b3f6a4d9ee90c\\n\\bootos.wim\n",
      "大小: 16.01 MB, 修改时间：2025-05-14 10:42:10, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\Office16\\sdxs\\FA000000131\\OfflineFiles\\pane_0ce61daab53d07fc913e3563db5359be.js\n",
      "大小: 16.00 MB, 修改时间：2025-05-26 11:40:34, 文件: C:/swapfile.sys\n",
      "大小: 15.70 MB, 修改时间：2025-05-14 10:42:09, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\Office16\\sdxs\\FA000000122\\index.win32.bundle\n",
      "大小: 15.50 MB, 修改时间：2025-05-14 14:07:08, 文件: C:/Users\\manulism\\AppData\\Roaming\\Tencent\\WeChat\\XPlugin\\Plugins\\RadiumWMPF\\13639\\extracted\\runtime\\liteav.dll\n",
      "大小: 15.45 MB, 修改时间：2025-05-14 10:42:01, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\Office16\\XLINTL32.COMMON.DLL\n",
      "大小: 15.00 MB, 修改时间：2025-05-26 11:42:19, 文件: C:/Windows\\System32\\winevt\\Logs\\Microsoft-Windows-PowerShell%4Operational.evtx\n",
      "大小: 15.00 MB, 修改时间：2025-05-26 11:41:53, 文件: C:/Windows\\System32\\winevt\\Logs\\Windows PowerShell.evtx\n",
      "大小: 14.89 MB, 修改时间：2025-05-26 13:11:39, 文件: C:/Windows\\debug\\WIA\\wiatrace.log\n",
      "大小: 14.75 MB, 修改时间：2025-05-13 18:32:00, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\index\\filenameindex\\FilenameIndex_inputs_i\n",
      "大小: 14.75 MB, 修改时间：2025-05-13 18:32:00, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\index\\filetypes\\filetypes_inputs_i\n",
      "大小: 14.75 MB, 修改时间：2025-05-13 14:15:44, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\index\\stubs\\Stubs.storage_i\n",
      "大小: 14.73 MB, 修改时间：2025-05-25 11:34:41, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\vfs\\ProgramFilesCommonX64\\Microsoft Shared\\OFFICE16\\Mso30win32client.dll\n",
      "大小: 14.70 MB, 修改时间：2025-05-25 11:34:47, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\vfs\\ProgramFilesCommonX86\\Microsoft Shared\\OFFICE16\\Mso40UIwin32client.dll\n",
      "大小: 14.47 MB, 修改时间：2025-05-09 10:17:33, 文件: C:/Windows\\assembly\\NativeImages_v4.0.30319_64\\PresentationCore\\7477a15c3c1009f7200147e4042e50d6\\PresentationCore.ni.dll\n",
      "大小: 14.27 MB, 修改时间：2025-05-25 11:34:36, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\Office16\\VVIEWER.DLL\n",
      "大小: 14.21 MB, 修改时间：2025-05-25 11:34:37, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\Office16\\Wordcnv.dll\n",
      "大小: 14.06 MB, 修改时间：2025-05-16 16:00:23, 文件: C:/Windows\\SysWOW64\\Windows.UI.Xaml.dll\n",
      "大小: 14.06 MB, 修改时间：2025-05-16 16:00:23, 文件: C:/Windows\\WinSxS\\wow64_microsoft-windows-directui_31bf3856ad364e35_10.0.19041.5848_none_35cd6b70d85ab46d\\Windows.UI.Xaml.dll\n",
      "大小: 13.99 MB, 修改时间：2025-05-15 10:27:38, 文件: C:/Users\\manulism\\.vscode\\extensions\\ms-python.vscode-pylance-2025.5.1\\dist\\browser.async.bundle.js\n",
      "大小: 13.98 MB, 修改时间：2025-05-15 10:27:39, 文件: C:/Users\\manulism\\.vscode\\extensions\\ms-python.vscode-pylance-2025.5.1\\dist\\browser.sync.bundle.js\n",
      "大小: 13.89 MB, 修改时间：2025-05-13 14:15:39, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\index\\.persistent\\textContentHashes.keystream\n",
      "大小: 13.74 MB, 修改时间：2025-05-16 15:59:59, 文件: C:/Windows\\SystemResources\\shell32.dll.mun\n",
      "大小: 13.74 MB, 修改时间：2025-05-16 15:59:59, 文件: C:/Windows\\WinSxS\\amd64_microsoft-windows-shell32_31bf3856ad364e35_10.0.19041.5848_none_e0abf84fc75fe0be\\shell32.dll.mun\n",
      "大小: 13.27 MB, 修改时间：2025-05-13 16:09:03, 文件: C:/Users\\manulism\\AppData\\Local\\npm-cache\\_cacache\\content-v2\\sha512\\3c\\4f\\21194cb52c39562075813f4e5215da941c699170270ae08ce938a3c4df978ec3e1bdcd981c9cca72ba72555043a06fffca04e44f8f2b0a9ddc3c6c52ee46\n",
      "大小: 13.18 MB, 修改时间：2025-05-15 22:39:44, 文件: C:/Program Files\\Common Files\\microsoft shared\\ClickToRun\\OfficeClickToRun.exe\n",
      "大小: 13.15 MB, 修改时间：2025-05-13 13:53:45, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\index\\.persistent\\idindex\\values.values\n",
      "大小: 13.10 MB, 修改时间：2025-05-20 10:49:37, 文件: C:/Windows\\assembly\\NativeImages_v4.0.30319_64\\Microsoft.P521220ea#\\22ac5fe0634327449c9498215997e750\\Microsoft.PowerShell.Commands.Utility.ni.dll\n",
      "大小: 12.89 MB, 修改时间：2025-05-13 13:53:55, 文件: C:/Users\\manulism\\AppData\\Local\\JetBrains\\IntelliJIdea2021.1\\index\\stubs\\java.method.name\\java.method.name.storage.keystream\n",
      "大小: 12.82 MB, 修改时间：2025-05-23 17:00:00, 文件: C:/Users\\manulism\\AppData\\Roaming\\Tencent\\WeMeet\\Global\\Logs\\xcast_2025052316.log\n",
      "大小: 12.75 MB, 修改时间：2025-05-23 16:00:00, 文件: C:/Users\\manulism\\AppData\\Roaming\\Tencent\\WeMeet\\Global\\Logs\\xcast_2025052315.log\n",
      "大小: 12.75 MB, 修改时间：2025-05-26 11:40:08, 文件: C:/Users\\manulism\\AppData\\Local\\Microsoft\\Windows\\UsrClass.dat\n",
      "大小: 12.64 MB, 修改时间：2025-05-23 18:00:00, 文件: C:/Users\\manulism\\AppData\\Roaming\\Tencent\\WeMeet\\Global\\Logs\\xcast_2025052317.log\n",
      "大小: 12.62 MB, 修改时间：2025-05-07 15:33:11, 文件: C:/Program Files (x86)\\Google\\GoogleUpdater\\crx_cache\\1a58825bef499c7f50a80d193fc7ad0493f58a6dd7588c23988e6ed6de0e2e46\n",
      "大小: 12.52 MB, 修改时间：2025-05-25 11:34:24, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\Integration\\SPPRedist64.msi\n",
      "大小: 12.52 MB, 修改时间：2025-05-25 11:34:24, 文件: C:/Windows\\Installer\\78387.msi\n",
      "大小: 12.42 MB, 修改时间：2025-05-25 11:34:32, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\Office16\\OART.DLL\n",
      "大小: 12.32 MB, 修改时间：2025-05-09 10:16:48, 文件: C:/Windows\\assembly\\NativeImages_v4.0.30319_32\\PresentationCore\\0a8b0ec782f4f2be50c9b1725dd628ae\\PresentationCore.ni.dll\n",
      "大小: 12.13 MB, 修改时间：2025-05-09 10:17:17, 文件: C:/Windows\\assembly\\NativeImages_v4.0.30319_64\\System\\38ec7cdda997194850af73f2af3f7cc2\\System.ni.dll\n",
      "大小: 12.01 MB, 修改时间：2025-05-23 18:02:51, 文件: C:/Users\\manulism\\AppData\\Roaming\\Tencent\\WeMeet\\Global\\Data\\WebkitCacheData\\2_cache_1715653551359\\Cache\\Cache_Data\\data_3\n",
      "大小: 11.96 MB, 修改时间：2025-05-14 10:42:12, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\Office16\\sdxs\\FA000000156\\OfflineFiles\\bundle_4e0e272f22ee5a84e42ab715ea23f5e4.js\n",
      "大小: 11.86 MB, 修改时间：2025-05-25 20:32:26, 文件: C:/Users\\manulism\\Desktop\\工作目录\\yoyo\\成长足迹\\中华经典诵写大赛\\新千字文.mp4\n",
      "大小: 11.62 MB, 修改时间：2025-05-25 11:34:47, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\vfs\\ProgramFilesCommonX86\\Microsoft Shared\\OFFICE16\\Mso30win32client.dll\n",
      "大小: 11.62 MB, 修改时间：2025-05-14 04:31:55, 文件: C:/Program Files\\Google\\Chrome\\Application\\136.0.7103.114\\optimization_guide_internal.dll\n",
      "大小: 11.55 MB, 修改时间：2025-05-22 14:07:15, 文件: C:/ProgramData\\NVIDIA Corporation\\NvProfileUpdaterPlugin\\optimus\\update.dat\n",
      "大小: 11.45 MB, 修改时间：2025-05-23 05:46:00, 文件: C:/Program Files (x86)\\Microsoft\\Edge\\Application\\136.0.3240.92\\icudtl.dat\n",
      "大小: 11.45 MB, 修改时间：2025-05-23 05:46:00, 文件: C:/Program Files (x86)\\Microsoft\\Edge\\Application\\136.0.3240.92\\ResiliencyLinks\\icudtl.dat.DATA\n",
      "大小: 11.45 MB, 修改时间：2025-05-23 05:46:00, 文件: C:/Program Files (x86)\\Microsoft\\EdgeCore\\136.0.3240.92\\icudtl.dat\n",
      "大小: 11.45 MB, 修改时间：2025-05-23 05:46:00, 文件: C:/Program Files (x86)\\Microsoft\\EdgeWebView\\Application\\136.0.3240.92\\icudtl.dat\n",
      "大小: 11.45 MB, 修改时间：2025-05-23 05:46:00, 文件: C:/Program Files (x86)\\Microsoft\\EdgeWebView\\Application\\136.0.3240.92\\ResiliencyLinks\\icudtl.dat.DATA\n",
      "大小: 11.43 MB, 修改时间：2025-05-14 10:41:59, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\Office16\\WinAppSDK\\Microsoft.ui.xaml.dll\n",
      "大小: 11.28 MB, 修改时间：2025-05-26 13:25:46, 文件: C:/ProgramData\\USOPrivate\\UpdateStore\\store.db\n",
      "大小: 11.26 MB, 修改时间：2025-05-25 11:34:26, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\Office16\\CHART.DLL\n",
      "大小: 11.25 MB, 修改时间：2025-05-19 18:50:08, 文件: C:/Windows\\System32\\SMI\\Store\\Machine\\SCHEMA.DAT\n",
      "大小: 11.14 MB, 修改时间：2025-05-13 22:45:24, 文件: C:/Program Files\\Google\\Chrome\\Application\\136.0.7103.114\\resources.pak\n",
      "大小: 10.88 MB, 修改时间：2025-05-25 11:34:40, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\Office16\\protocolhandler.exe\n",
      "大小: 10.58 MB, 修改时间：2025-05-14 14:07:11, 文件: C:/Users\\manulism\\AppData\\Roaming\\Tencent\\WeChat\\XPlugin\\Plugins\\RadiumWMPF\\13639\\extracted\\runtime\\WXAMSDK.dll\n",
      "大小: 10.51 MB, 修改时间：2025-05-09 10:17:22, 文件: C:/Windows\\assembly\\NativeImages_v4.0.30319_64\\System.Core\\d991ec157fc0c20e780520882bd905de\\System.Core.ni.dll\n",
      "大小: 10.36 MB, 修改时间：2025-05-16 15:59:56, 文件: C:/Windows\\System32\\ntoskrnl.exe\n",
      "大小: 10.36 MB, 修改时间：2025-05-16 15:59:56, 文件: C:/Windows\\WinSxS\\amd64_microsoft-windows-os-kernel_31bf3856ad364e35_10.0.19041.5848_none_e0b32f1269870567\\ntoskrnl.exe\n",
      "大小: 10.34 MB, 修改时间：2025-05-26 11:30:39, 文件: C:/Program Files (x86)\\Microsoft\\EdgeUpdate\\Download\\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}\\136.0.3240.92\\MicrosoftEdge_X64_136.0.3240.92_136.0.3240.76.exe\n",
      "大小: 10.34 MB, 修改时间：2025-05-25 11:30:15, 文件: C:/Program Files (x86)\\Microsoft\\EdgeUpdate\\Download\\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}\\136.0.3240.92\\MicrosoftEdge_X64_136.0.3240.92_136.0.3240.76.exe\n",
      "大小: 10.34 MB, 修改时间：2025-05-26 11:30:39, 文件: C:/Program Files (x86)\\Microsoft\\EdgeUpdate\\Install\\{C5237DF5-E6BC-4E8A-87BE-0D02AB46DAC5}\\MicrosoftEdge_X64_136.0.3240.92_136.0.3240.76.exe\n",
      "大小: 10.12 MB, 修改时间：2025-05-09 10:16:15, 文件: C:/Windows\\assembly\\NativeImages_v4.0.30319_32\\System\\f204cde3b2ac4d549846440dc8cacdb0\\System.ni.dll\n",
      "大小: 10.05 MB, 修改时间：2025-05-14 10:41:56, 文件: C:/Program Files (x86)\\Microsoft Office\\root\\Office16\\ONRES.DLL\n"
     ]
    }
   ],
   "source": [
    "import os\n",
    "import time\n",
    "from datetime import datetime, timedelta\n",
    "\n",
    "# 获取当前日期，并计算出一个月前的日期\n",
    "one_month_ago = datetime.now() - timedelta(days=30)\n",
    "\n",
    "# 将其转换为时间戳\n",
    "timestamp_one_month_ago = one_month_ago.timestamp()\n",
    "\n",
    "# C盘路径\n",
    "directory = \"C:/\"\n",
    "\n",
    "# 用于存储新增文件的列表\n",
    "new_files = []\n",
    "\n",
    "# 遍历C盘下的所有文件\n",
    "for root, dirs, files in os.walk(directory):\n",
    "    for file in files:\n",
    "        try:\n",
    "            file_path = os.path.join(root, file)\n",
    "            # 获取文件的修改时间\n",
    "            file_mtime = os.path.getmtime(file_path)\n",
    "            \n",
    "            # 如果文件修改时间在一个月之内，加入列表\n",
    "            if file_mtime >= timestamp_one_month_ago:\n",
    "                file_size = os.path.getsize(file_path)\n",
    "                if file_size > 10 * 1024 ** 2:\n",
    "                    file_mtime_readable = datetime.fromtimestamp(file_mtime).strftime('%Y-%m-%d %H:%M:%S')\n",
    "                    new_files.append((file_path, file_size, file_mtime_readable))\n",
    "        except:\n",
    "            pass\n",
    "\n",
    "# 输出最近一个月新增的文件和大小\n",
    "sorted_files = sorted(new_files, key=lambda item: item[1], reverse=True)\n",
    "for file_path, file_size,file_mtime in sorted_files:\n",
    "    print(f\"大小: {file_size/ (1024 ** 2):.2f} MB, 修改时间：{file_mtime}, 文件: {file_path}\")\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "89159eb4-e7a0-4041-b3d0-50e12707e95c",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.19"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
